import Vue from 'vue'
import Vuex from 'vuex'
import pl from 'element-ui/src/locale/lang/pl';

//挂载Vuex
Vue.use(Vuex);

//创建VueX对象
const store = new Vuex.Store({
  state:{
    //存放的键值对就是所要管理的状态
    name:'Hanwenyao',
    token:''
  },
  getters:{

  },
  mutations:{
    storeCurrProject: function(state, payload) {
      state.currentProject = payload.id;
    }
  }
});

export default store